﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Command;
using Bymed.SpineScan.WPF.Model;
using Bymed.SpineScan.WPF.Shared;

namespace Bymed.SpineScan.WPF.ViewModel
{
    public class PatientBasicInfoDisplayViewModel : PatientBasicInfoBaseViewModel
    {
        /// <summary>
        /// Initializes a new instance of the PatientBasicInfoDisplayViewModel class.
        /// </summary>
        public PatientBasicInfoDisplayViewModel(IDataService dataService)
            : base(dataService) { }

        /// <summary>
        /// The <see cref="SequenceNumber" /> property's name.
        /// </summary>
        public const string SequenceNumberPropertyName = "SequenceNumber";

        private int _sequenceNumber = 0;

        /// <summary>
        /// Sets and gets the SequenceNumber property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public int SequenceNumber
        {
            get
            {
                return _sequenceNumber;
            }

            set
            {
                if (_sequenceNumber == value)
                {
                    return;
                }

                RaisePropertyChanging(SequenceNumberPropertyName);
                _sequenceNumber = value;
                RaisePropertyChanged(SequenceNumberPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="IsSelected" /> property's name.
        /// </summary>
        public const string IsSelectedPropertyName = "IsSelected";

        private bool _isSelected = false;

        /// <summary>
        /// Sets and gets the IsSelected property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public bool IsSelected
        {
            get
            {
                return _isSelected;
            }

            set
            {
                if (_isSelected == value)
                {
                    return;
                }

                RaisePropertyChanging(IsSelectedPropertyName);
                _isSelected = value;
                RaisePropertyChanged(IsSelectedPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="GenderDisplay" /> property's name.
        /// </summary>
        public const string GenderDisplayPropertyName = "GenderDisplay";

        private string _genderDisplay = string.Empty;

        /// <summary>
        /// Sets and gets the Gender property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string GenderDisplay
        {
            get
            {
                return _genderDisplay;
            }

            set
            {
                if (_genderDisplay == value)
                {
                    return;
                }

                RaisePropertyChanging(GenderDisplayPropertyName);
                _genderDisplay = value;
                RaisePropertyChanged(GenderDisplayPropertyName);
            }
        }

        /// <summary>
        /// The <see cref="BirthdayDisplay" /> property's name.
        /// </summary>
        public const string BirthdayDisplayPropertyName = "BirthdayDisplay";

        private string _birthdayDisplay = string.Empty;

        /// <summary>
        /// Sets and gets the BirthdayDisplay property.
        /// Changes to that property's value raise the PropertyChanged event. 
        /// </summary>
        public string BirthdayDisplay
        {
            get
            {
                return _birthdayDisplay;
            }

            set
            {
                if (_birthdayDisplay == value)
                {
                    return;
                }

                RaisePropertyChanging(BirthdayDisplayPropertyName);
                _birthdayDisplay = value;
                RaisePropertyChanged(BirthdayDisplayPropertyName);
            }
        }
    }
}
